/**
 * 抽象实现类
 */
public class Circle extends Shape{
    private float x, y,radius;

    public Circle(float x, float y, float radius,DrawAPI drawAPI){
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    void draw() {
        //抽象类声明了功能的抽象方法，但最终的实现是交给桥接接口的实现类处理。
        drawAPI.drawAPI(this.x, this.y, this.radius);
    }
}
